#include "_AFXPLEX_.H"
CPlex* CPlex::Create(CPlex* &pHead,UINT nMax,UINT cbElement)
{
	CPlex* p = (CPlex*)new BYTE[sizeof(CPlex)+nMax*cbElement];
	p->pNext = pHead;
	pHead = p;
	return p;
}

void CPlex::FreeDataChain()
{
	CPlex* p = this;
	while(p)
	{
		BYTE* pBytes = (BYTE*)p;
		p = p->pNext;
		delete []pBytes;
	}
}